﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MyCollection
{
    public partial class DisplayBody : Form
    {
        public DisplayBody()
        {
            InitializeComponent();
        }

        private string body;

        public string Body
        {
            get { return body; }
            set { body = value; }
        }

        public void SetBody()
        {
          
            this.htmlEditorControl1.InnerHtml = body;
            this.htmlEditorControl1.LinkStyleSheet("http://www.taobao.com/home/css/tbsp/master/global_v3a.php?t=20080429.css");
            
        }

        private void DisplayBody_Load(object sender, EventArgs e)
        {

        }

        
        private void btn_HtmlEdit_Click(object sender, EventArgs e)
        {
            this.htmlEditorControl1.HtmlContentsEdit();
            this.htmlEditorControl1.Focus();
        }
    }
}